<template>
  <div ref="chart" class="chart"></div>
</template>

<script>
import * as echarts from 'echarts';

export default {
  name: '',
  data() {
    return {
    };
  },
  mounted() {
    // 绘制图表
    const myChart = echarts.init(this.$refs.chart);
    myChart.setOption({
      tooltip: {
        trigger: 'item',
      },
      series: [
        {
          name: '到达地分布',
          type: 'pie',
          radius: ['40%', '70%'],
          data: [
            { value: 500, name: '低风险区' },
            { value: 210, name: '无风险区' },
          ],
          emphasis: {
            itemStyle: {
              shadowBlur: 10,
              shadowOffsetX: 0,
              shadowColor: 'rgba(0, 0, 0, 0.5)',
            },
          },
        },
      ],
    });
  },
  methods: {
  },
};
</script>

<style scoped>
</style>
